Skip to content

Add LazyHTML parser support with automatic parser fallback#101

Open
Ch4s3 wants to merge 2 commits intodanschultzer:mainfrom
Ch4s3:add_lazy_html_parser
Open

Add LazyHTML parser support with automatic parser fallback#101
Ch4s3 wants to merge 2 commits intodanschultzer:mainfrom
Ch4s3:add_lazy_html_parser

Conversation

@Ch4s3
Copy link
Copy Markdown

@Ch4s3 Ch4s3 commented Dec 10, 2025

  • Add Premailex.HTMLParser.LazyHTML implementation
  • Implement automatic parser detection: Floki → Meeseeks → LazyHTML
  • Add runtime error handling when no parser is available
  • Add comprehensive parser compatibility tests
  • Update documentation with parser options

The library now works without requiring Floki while maintaining full backwards compatibility. At least one parser (Floki, Meeseeks, or LazyHTML) must be included as a dependency.

closes #100

@Ch4s3
Copy link
Copy Markdown
Author

Ch4s3 commented Dec 10, 2025

@danschultzer The change to mix.exs may not be what you want for the library and I totally respect that and could change it, just let me know.

@danschultzer danschultzer force-pushed the main branch 2 times, most recently from a358e56 to c238b2b Compare March 23, 2026 17:56
- Add Premailex.HTMLParser.LazyHTML implementation
- Implement automatic parser detection: Floki → Meeseeks → LazyHTML
- Add runtime error handling when no parser is available
- Add comprehensive parser compatibility tests
- Update documentation with parser options

The library now works without requiring Floki while maintaining full
backwards compatibility. At least one parser (Floki, Meeseeks, or LazyHTML)
must be included as a dependency.

# Conflicts:
#	lib/premailex/html_parser/meeseeks.ex
#	mix.lock
@danschultzer danschultzer force-pushed the add_lazy_html_parser branch from 0d0b879 to 539dfc4 Compare March 23, 2026 18:18
@danschultzer danschultzer force-pushed the add_lazy_html_parser branch from 4a92d91 to 9fa719d Compare April 7, 2026 03:15
@danschultzer danschultzer force-pushed the add_lazy_html_parser branch from 9fa719d to 7407202 Compare April 7, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LazyHtml support

2 participants